package com.yzh.luckydraw.domain.rule.model.aggregates;

import com.yzh.luckydraw.domain.rule.model.vo.TreeNodeVO;
import com.yzh.luckydraw.domain.rule.model.vo.TreeRootVO;

import java.util.Map;

/**
 * 规则树聚合对象
 */
public class TreeRuleRich {
    /**
     * 树根信息
     */
    private TreeRootVO treeRoot;
    /**
     * 树节点Id -> 子节点
     */
    private Map<Long, TreeNodeVO> treeNodeVOMap;

    public TreeRootVO getTreeRoot() {
        return treeRoot;
    }

    public void setTreeRoot(TreeRootVO treeRoot) {
        this.treeRoot = treeRoot;
    }

    public Map<Long, TreeNodeVO> getTreeNodeMap() {
        return treeNodeVOMap;
    }

    public void setTreeNodeMap(Map<Long, TreeNodeVO> treeNodeMap) {
        this.treeNodeVOMap = treeNodeMap;
    }
}
